package org.lemon.cla.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.lemon.cla.enums.WeekdayEnum; // 导入星期枚举

@Data
@TableName("canteen_menu")
@Schema(description = "食堂菜单实体")
public class CanteenMenu {

    @TableId(value = "menu_id", type = IdType.AUTO)
    @Schema(description = "菜单ID", example = "1")
    private Long menuId;

    @TableField("canteen_name")
    @Schema(description = "食堂名称", example = "一食堂")
    private String canteenName;

    @TableField("img_url")
    @Schema(description = "图片URL", example = "http://example.com/menu_dish.jpg")
    private String imgUrl;

    @Schema(description = "星期", example = "周一", allowableValues = {"周日", "周一", "周二", "周三", "周四", "周五", "周六"})
    private WeekdayEnum weekday; // 直接使用枚举类型
}